package com.sitech.timing.domain;

import java.util.Date;
import java.util.Map;

public class GroupTaskInstance
{
	private String groupTaskInstanceId;
	private String superGroupTaskInstanceId;
	private String groupTaskId;
	private Date runTime;
	private String status;
	private String operator;
	private Map<String,TaskInstance> runTaskInstanceMap;
	
	public String getGroupTaskInstanceId()
	{
		return groupTaskInstanceId;
	}
	public void setGroupTaskInstanceId(String groupTaskInstanceId)
	{
		this.groupTaskInstanceId = groupTaskInstanceId;
	}
	public String getGroupTaskId()
	{
		return groupTaskId;
	}
	public void setGroupTaskId(String groupTaskId)
	{
		this.groupTaskId = groupTaskId;
	}
	public String getStatus()
	{
		return status;
	}
	public void setStatus(String status)
	{
		this.status = status;
	}
	public Date getRunTime()
	{
		return runTime;
	}
	public void setRunTime(Date runTime)
	{
		this.runTime = runTime;
	}
	public String getOperator()
	{
		return operator;
	}
	public void setOperator(String operator)
	{
		this.operator = operator;
	}
	public String getSuperGroupTaskInstanceId()
	{
		return superGroupTaskInstanceId;
	}
	public void setSuperGroupTaskInstanceId(String superGroupTaskInstanceId)
	{
		this.superGroupTaskInstanceId = superGroupTaskInstanceId;
	}
	
	public Map<String, TaskInstance> getRunTaskInstanceMap()
	{
		return runTaskInstanceMap;
	}
	public void setRunTaskInstanceMap(Map<String, TaskInstance> runTaskInstanceMap)
	{
		this.runTaskInstanceMap = runTaskInstanceMap;
	}
	
	public GroupTaskInstance clone()
	{
		 GroupTaskInstance groupTaskInstance = new GroupTaskInstance();
		 groupTaskInstance.setGroupTaskId(this.groupTaskId);
		 groupTaskInstance.setGroupTaskInstanceId(groupTaskInstanceId);
		 groupTaskInstance.setOperator(operator);
		 groupTaskInstance.setRunTime(runTime);
		 groupTaskInstance.setStatus(status);
		 groupTaskInstance.setSuperGroupTaskInstanceId(superGroupTaskInstanceId);
		 groupTaskInstance.setRunTaskInstanceMap(runTaskInstanceMap);
		 return groupTaskInstance;
	}
}
